#ifndef T6PRINTER_H
#define T6PRINTER_H

#include <QString>

class t6Printer
{
public:
    t6Printer();
	~t6Printer();

	void close();
    bool open(QString &name);
    bool defaultPrinter(QString &name);
	int status();

    QByteArray makeHead();
    QByteArray makeText(int x, int y, int fs, QString t);
    QByteArray makeQrCode(int x, int y, int fs, QString t);
    QByteArray makeEnd();
    bool printRaw(QByteArray &data);

private:
    void *Handle;
    QString dprinter;
};

#endif // T6PRINTER_H
